package com.signway.module_signway_adapter_Api;

import android.content.Context;
import android.os.signwaymanager.SignwayManager;
import android.util.Log;

import com.signway.open.api.IOpenOpenSdkApi;

/*
 * -----------------------------------------------------------------
 * Copyright (C) 2011-2019, by your Signway, All rights reserved.
 * -----------------------------------------------------------------
 *
 * ProjectName: droid5119
 *
 * Author: Administrator
 *
 * Email: pf.wang@Signway.cn
 *
 * Description:
 *
 * -----------------------------------------------------------------
 * 2019-7-3 : Create T960xOpenSdkApi.java
 * -----------------------------------------------------------------
 */
public class SignwayOpenSdkApi implements IOpenOpenSdkApi {

    private static final String TAG = "OpenSdkApi";
    private static SignwayOpenSdkApi mSignwayOpenSdkApi;
    private static Context mContext;
    private SignwayManager signwayManager;

    public static synchronized SignwayOpenSdkApi getInstance(Context context) {
        mContext = context;
        if (mSignwayOpenSdkApi == null) {
            mSignwayOpenSdkApi = new SignwayOpenSdkApi(context);
        }
        return mSignwayOpenSdkApi;
    }

    public SignwayOpenSdkApi(Context context) {
        this.mContext = context;
        Log.d(TAG,"mContext---->" + mContext +"  "  +context);
        signwayManager = SignwayManager.getInstance(mContext);
    }

    @Override
    public void openOpenSdkApi(Context context) {

    }

    @Override
    public void closeOpenSdkApi(Context context) {

    }

    @Override
    public boolean isOpenSdkApiConnect() {
        return true;
    }
}
